# _*_ coding: utf-8 _*_
# @Time : 2024-01-26 13:48
# @Author : WF
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

# 最大化窗口
driver.maximize_window()
# driver.get('https://www.jd.com/')
driver.get('https://www.baidu.com')

ele = driver.find_element(By.ID, 'su')
ele.screenshot('ele.png')

time.sleep(5)
driver.quit()
